package com.sdx.console;

import com.sdx.common.utils.SpringUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.PropertySource;
import org.springframework.web.WebApplicationInitializer;

@SpringBootApplication
@EnableCaching
@ComponentScan(basePackages= {"com.sdx","com.ibeetl.admin"})
@PropertySource("classpath:ext.properties")
public class MainApplication  extends SpringBootServletInitializer implements WebApplicationInitializer {
	
    public static void main(String[] args) {

	    ApplicationContext applicationContext = SpringApplication.run(MainApplication.class, args);
	    SpringUtils.setApplicationContext(applicationContext);
    }



}	